package cn.sciento.transfer.infra.datasource.properties;

public enum DataSourcePoolType {
  C3P0("C3p0", "com.mchange.v2.c3p0.ComboPooledDataSource"),
  DBCP2("Dbcp2", "org.apache.commons.dbcp2.BasicDataSource"),
  DRUID("Druid", "com.alibaba.druid.pool.DruidDataSource"),
  DEFAULT("Default", "com.zaxxer.hikari.HikariDataSource");
  
  private String type;
  
  private String dataSourcePoolClass;
  
  DataSourcePoolType(String type, String dataSourcePoolClass) {
    this.type = type;
    this.dataSourcePoolClass = dataSourcePoolClass;
  }
  
  public String type() {
    return this.type;
  }
  
  public String dataSourcePoolClass() {
    return this.dataSourcePoolClass;
  }
}
